<template>
  <div>
    <span>嗨购秒杀</span>
    <span>10点场</span>
    <van-count-down :time="time">
      <template #default="timeData">
        <span class="block">{{ timeData.hours }}</span>
        <span class="colon">:</span>
        <span class="block">{{ timeData.minutes }}</span>
        <span class="colon">:</span>
        <span class="block">{{ timeData.seconds }}</span>
      </template>
    </van-count-down>
  </div>
</template>

<script>
export default {
  name:"SecondsKill",
  data(){
    return {
      time: 5 * 60 * 60 * 1000,
    }
  }
}
</script>

<style scoped>
.colon {
    display: inline-block;
    margin: 0 4px;
    color: #ee0a24;
  }
  .block {
    display: inline-block;
    width: 22px;
    color: #fff;
    font-size: 12px;
    text-align: center;
    background-color: #ee0a24;
    border-radius: 5px;
  }

</style>